﻿<?php

session_start();
//if ($access == true)
if ($_SESSION['access'] == true)
{
header("Content-type: text/javascript");
?>
//any javascript can go in here
function showmessage()
{
  alert("hidden javascript!");
}

alert("woohoo it works at last!");
<?php
//$access = false;
unset($_SESSION['access']);
}
?>
